﻿using BySoft.Server.Business;
using BySoft.Server.Common;
using BySoft.Server.Common.Entity;
using BySoft.Web.Utility;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BySoft.Web.Site.MasteData
{
    public partial class ProductTypeView : AuthBasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
              
                BindData();
            }
        }
       

        private void BindData()
        {
            string strCode = HttpUtility.UrlDecode(UIHelper.GetQueryStringValue("id").Trim());
            if (!string.IsNullOrEmpty(strCode))
            {
                MdProducttypeEntity en = MdProducttype.GetMdProducttypeByID(strCode);
                if (en != null)
                {
                    this.lblProductTypeID.Text = en.ProductTypeID;
                    this.lblProductTypeName.Text = en.ProductTypeName;
                  
                }
            }
        }
    }
}